<CFPARAM NAME="attributes.TITLE" DEFAULT="">
<CFPARAM NAME="attributes.TEXT" DEFAULT="">
<CFPARAM NAME="attributes.TABLENAME" DEFAULT="">
<CFPARAM NAME="attributes.FORMCODE" DEFAULT="">
<CFPARAM NAME="attributes.TYPE" DEFAULT="1">
<CFIF attributes.TYPE EQ "1">
	<CFQUERY NAME="qryGetPromptDetails" DATASOURCE="#client.company_dsn#">
		SELECT
			MESSAGETITLE,MESSAGETEXT
		FROM
			ECRGFORMSDETAIL WHERE FORMCODE = '#attributes.FORMCODE#' AND DETAILTABLE='#attributes.TABLENAME#'
	</CFQUERY>
	<CFSET sTitle = qryGetPromptDetails.MESSAGETITLE>
	<CFSET sMsg = qryGetPromptDetails.MESSAGETEXT>
<CFELSE>
	<CFSET sTitle = attributes.TITLE>
	<CFSET sMsg = attributes.TEXT>
</CFIF>
<CFIF Trim(sMsg) NEQ "">
	<CFMODULE TEMPLATE="#client.common_path#cfm_wswindow.cfm" TITLE="#sTitle#">
	<CFOUTPUT>#sMsg#</CFOUTPUT>
	<CFMODULE TEMPLATE="#client.common_path#cfm_wswindow.cfm" TOP="False">
</CFIF>

